package cn.itcast.day01.demo03;

public class Demo02MethodSum {
    public static void main(String[] args) {
        System.out.println(getSum());
    }
    public static int getSum(){
        int sum=0;
        for(int i=1;i<=100;i++){
            sum+=i;
        }
        return sum;
    }
}
